package com.dao.impl;
import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.dao.*;
import com.entity.CartItem;
@Repository
public class CartItemDaoImpl extends BaseDaoImpl implements CartItemDao{

	@Override
	public void deleteItem(int id) {
		Session session=this.getSession();
		session.delete(session.get(CartItem.class, id));
		session.flush();
	}

}
